package com.baomibing.flow.service;

import com.baomibing.core.common.SearchResult;
import com.baomibing.flow.dto.SysFlowHistoryTaskDto;

import java.util.List;

public interface SysFlowHistoryTaskService {

    void saveHistoryTask(SysFlowHistoryTaskDto task);

    void saveHistoryTasks(List<SysFlowHistoryTaskDto> tasks);

    void updateHistoryTask(SysFlowHistoryTaskDto task);

    SearchResult<SysFlowHistoryTaskDto> listUserHistoryTaskByInstance(String userNo, int pageNo, int pageSize);

    List<SysFlowHistoryTaskDto> listLatestHistoryTaskByInstance(String instanceId);

    public Integer maxStepByInstance(String instanceId);

}
